;Macro definition
stack_size EQU 0x200
primesum_size EQU 100
;DEFINE THE STACK AND ITS PROPERTY
	AREA startstack,DATA,READWRITE 
stack_start
	SPACE stack_size ;define a space but not use now
stack_end ;stack-top address pointer
	PRESERVE8 ;for 8bit align to ready,
;define vectors
	AREA RESET,DATA,READONLY
vectors	;The order of the two items is fixed.
	DCD stack_end ;stack top 4 bit  / DCW 2bit
	DCD code_start ;code begin 4 bit
vectors_end
	EXPORT sum_two
	AREA mycode, CODE,READONLY,ALIGN=3 ;align=3 is for 2^3=8 to align 8 bit
	;IMPORT sum_three
	IMPORT main
arr space primesum_size
code_start PROC
	;MOV R0,#6
	;MOV R1,#11
	;MOV R2,#-2
	;BL sum_two
	;BL sum_three
	BL main
	;BL PrimeSum
	B . ;while(1)
	ENDP
sum_two PROC
	PUSH {R2-R12,LR}
	ADD R0,R0,R1
	POP {R2-R12,PC}
	ENDP ;end proc
		
	END ;end the code